package com.yc.homepage;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h1>基本用户信息<h1/>
 * 通用模块，从两个微服务中抽离出来的代码
 * @author yc112
 */
@Data // 增加setter和getter
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {

    private Long id;
    private String username;
    private String email;

    public static UserInfo invalid() {
        return new UserInfo(-1L, "" , "");
    }

}
